<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@include file="/inc/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/inc/js.jsp" %>
<script>
$(function(){
	for(var i=0;i<protectQestion.length;i++){
		$("#protectQestion").append("<option value='"+i+"'>"+protectQestion[i]+"</option>");
	}
	initQueryForm();
});
function doevent(msg){
	showTip(msg.msg);
	if("S"==msg.stat){window.location="<c:url value='/regsuccess.jsp'/>";}
}
</script>
</head>
<body>
<div id="bodydiv">
	<%@include file="/inc/top.jsp"%>
	<div id="body">
	<div style="width:900px;margin-left:0px;" class="box"> 
        <span class="rc-tp">
            <span></span>
        </span>
        <div class="hd" style="text-align:left;height:25px;padding-top:10px;">
            <h3>注册会员</h3>
        </div>
        <div class="bd" >
	        <%--开始 --%>
	        <div id="register_div" style="height:350px;">
	        <form action="save" onsubmit="return ajaxSubmit(this,doevent);">
	        	<ul>
	        		<li><div class="fieldtitle">会员号:</div><div class="field"><input type="text" name="usercode"id=""></div><div class="fieldmsg">5-20个英文字母或数字组成会员名。</div></li>
	        		<li><div class="fieldtitle">登录密码:</div><div class="field"><input type="password" id="pwd1"></div><div class="fieldmsg">6-16个字符，请使用字母加数字或符号的组合密码。</div></li>
	        		<li><div class="fieldtitle">确认密码:</div><div class="field"><input type="password" name="pwd"id="pwd2"></div><div class="fieldmsg">与所输入的登录密码要一致。</div></li>
	        		<li><div class="fieldtitle">密码保护问题:</div><div class="field"><select name="protectQestion"id="protectQestion"></select></div><div class="fieldmsg">选择问题类型。</div></li>
	        		<li><div class="fieldtitle">问题答案:</div><div class="field"><input type="text" name="protectAnswer"id="protectAnswer"></div><div class="fieldmsg">输入对应的答案。</div></li>
	        		<li><div class="fieldtitle">手机号码:</div><div class="field"><input type="text" name="phone"id="phone"></div><div class="fieldmsg">输入您常用的手机号码。</div></li>
	        		<li><div class="fieldtitle">Email:</div><div class="field"><input type="text" name="email"id="email"></div><div class="fieldmsg">输入您常用的电子邮箱。</div></li>
	        		<li><div class="fieldtitle">验证码:</div><div class="field"><input type="text" id="checkcode" name="checkcode" style="width:95px;float:left;"><span style="margin-left:5px;"><img id="codeImg" src="${path }/VC.jpg?<%=(new Date()).getTime()  %>" onclick="this.src='${path }/VC.jpg?id='+Math.random()*10"title="点击更新验证码" width="75" height="24" /></span></div>
	        		<div class="fieldmsg">输入图片中所显示的字符。看不清？点击图片<a href="javascript:void(0);" onclick="document.getElementById('codeImg').src='${path }/VC.jpg?id='+Math.random()*10;">刷新</a>。</div></li>
	        		<li><div class="fieldtitle">&nbsp;</div><div class="field"><button type="submit">确认信息正确并注册</button></div></li>
	        	</ul>
	        </form>
	        </div>
		 	<%--结束 --%>
		</div>
         <span class="rc-bt">
            <span></span>
        </span>
	</div>
	</div>
	<%@include file="/inc/bottom.jsp"%>
</div>
</body>
</html>